import request from '@/utils/request'

// 查询优惠券类型列表
export function listTbcouponcategory(query) {
  return request({
    url: '/coupon/tbcouponcategory/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券类型详细
export function getTbcouponcategory(id) {
  return request({
    url: '/coupon/tbcouponcategory/' + id,
    method: 'get'
  })
}

// 新增优惠券类型
export function addTbcouponcategory(data) {
  return request({
    url: '/coupon/tbcouponcategory',
    method: 'post',
    data: data
  })
}

// 修改优惠券类型
export function updateTbcouponcategory(data) {
  return request({
    url: '/coupon/tbcouponcategory',
    method: 'put',
    data: data
  })
}

// 删除优惠券类型
export function delTbcouponcategory(id) {
  return request({
    url: '/coupon/tbcouponcategory/' + id,
    method: 'delete'
  })
}
